﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.DeployTool"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CPPEI.Coolzon.Designer.DeployTool.MainWindow"
        Title="部署工具" Height="400" Width="800" WindowStartupLocation="CenterScreen">
    <Grid x:Name="_grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="button" Content="选择方案压缩包" FontSize="24" Margin="265,78,260,101.5" Grid.Row="2" Panel.ZIndex="100" Click="button_Click"/>
        <TextBlock x:Name="_directory" Grid.Row="0" Text="C:\\Coolzon\\Server\\V1.5\\RuntimeStorage\\" FontSize="15" VerticalAlignment="Center"  Visibility="Visible" d:IsLocked="True"/>
        <Button x:Name="_selectServerDirectory" Grid.Row="0" Grid.Column="1" Content="重新选择目录" Margin="5" Visibility="Visible" Click="_selectServerDirectory_Click" d:IsLocked="True"/>
        <ListView x:Name="_dataGrid" Grid.Row="2" Grid.ColumnSpan="2" AllowDrop="True" DragDrop.Drop="_dataGrid_Drop" d:IsLocked="True"  />
        <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Visibility="Visible" d:IsLocked="True">
            <Button x:Name="_deploy" Content="部署" Width="75" Margin="5" Click="_deploy_Click"/>
        </StackPanel>
        <Grid Grid.Row="1" Grid.ColumnSpan="2" d:IsLocked="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="名称:" FontSize="15"/>
            <TextBlock Grid.Row="0" Grid.Column="1" x:Name="_name" Text=" " FontSize="15"/>
            <TextBlock Grid.Row="0" Grid.Column="2" Text="描述:" HorizontalAlignment="Right" FontSize="15" />
            <TextBlock Grid.Row="0" Grid.Column="3" x:Name="_caption" Text=" " FontSize="15" />
            <TextBlock Grid.Row="1" Grid.Column="0" Text="版本:" FontSize="15" Margin="0,5,0,0" />
            <TextBlock Grid.Row="1" Grid.Column="1" x:Name="_version" Text=" " FontSize="15" Margin="0,5,0,0"/>
            <TextBlock Grid.Row="1" Grid.Column="2" Text="运行时版本:" FontSize="15" Margin="0,5,0,0"/>
            <TextBlock Grid.Row="1" Grid.Column="3" x:Name="_runtimeVersion" Text=" " FontSize="15" Margin="0,5,0,0"/>
            <TextBlock Grid.Row="2" Grid.Column="0" Text="方案类型:" FontSize="15" Margin="0,5,0,0"/>
            <TextBlock Grid.Row="2" Grid.Column="1" x:Name="_type" Text=" " FontSize="15" Margin="0,5,0,0"/>
        </Grid>
    </Grid>
</Window>
